import Vue from "vue";
import Vuex from "vuex";
import app from "./modules/app";
import routerArr from "./modules/routerArr";
import user from "./modules/user";
import media from "./modules/media";
import taskData from "./modules/taskData";
import witnessTask from "./modules/witnessTask";
// import closemanege from "./modules/closemanege";
// import permission from "./modules/permission";
import getters from "./getters";
import * as actions from "./actions";
Vue.use(Vuex);
const store = new Vuex.Store({
  state: {},
  mutations: {},
  actions,
  modules: {
    app,
    routerArr,
    user,
    media,
    witnessTask,
    taskData
    // permission,
    // closemanege
  },
  getters
});
// if (module.hot) {
//   module.hot.accept([
//     './getters',
//     './actions',
//     './mutations'
//   ], () => {
//     store.hotUpdate({
//       getters: require('./getters'),
//       actions: require('./actions'),
//       mutations: require('./mutations')
//     })
//   })
// }
export default store;
